import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { TableComponent } from './table/table.component';
import { Routes, RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { CourseService } from 'app/my/course/course.service';
import { DetailComponent } from './detail/detail.component';

const routes: Routes = [
  { path: 'table', component: TableComponent },
  { path: 'detail', component: DetailComponent },
];

@NgModule({
  imports: [
    SharedModule,
    CommonModule,
    RouterModule.forChild(routes)
  ],
  declarations: [TableComponent, DetailComponent],
  providers: [CourseService]
})
export class CourseModule { }
